第 9 步:现在我们需要设置roll2值范围

randint中的参数设置范围。由于骰子有6面,我们想要一个介于16之间的随机数。


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)